package com.pmcc.core.entity.security;

import com.pmcc.core.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 附件表
 * Created by lihaiyue on 2018/3/18.
 */
@Getter
@Setter
@Entity
@Table(name = "SYS_ATTACHMENT")
public class Attachment extends BaseEntity {

    @Column(name = "BUSINESS_MODEL", length = 100)
    private String businessModel;//业务模块

    @Column(name = "BUSINESS_DATA_ID", length = 32)
    private String businessDataId;//业务数据ID

    @Column(name = "FILE_NAME", length = 100)
    private String fileName;//附件名称

    @Column(name = "FILE_URL", length = 300)
    private String fileUrl;//附件地址

    @Column(name = "FILE_ALIAS_NAME", length = 100)
    private String fileAliasName;//附件转换名称

    @Column(name = "FILE_TYPE", length = 11)
    private String fileType;//附件类型

    @Column(name = "FILE_SIZE")
    private Long fileSize;//附件大小(单位B)

    @Column(name = "DOWNLOAD_COUNT", length = 11)
    private Integer downloadCount;//下载次数
}
